(function() {
    window.onresize = function() {
        // 获取页面可视区的宽度
        var width = window.innerWidth;

        width = Math.min(width, 1920);
        width = Math.max(width, 1024);

        document.documentElement.style.fontSize = width / 80 + 'px';

    }
    window.onresize();
})()